package club.zbiao.modules.system.domain;

import lombok.Data;

import javax.persistence.*;

/**
 * @author jie
 * @date 2019-04-10
 */
@Entity
@Data
@Table(name = "sys_dict_detail")
public class DictDetail extends BaseEntity {

    /**
     * 字典标签
     */
    @Column(name = "label", nullable = false)
    private String label;

    /**
     * 字典值
     */
    @Column(name = "value", nullable = false)
    private String value;

    /**
     * 排序
     */
    @Column(name = "sort")
    private String sort = "999";

    /**
     * 字典id
     */
    @ManyToOne
    @JoinColumn(name = "dict_id")
    private Dict dict;

    public @interface Update {
    }
}